package com.ruoyi.publish.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 获取新包对象 best_jenkins_builds
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
public class BestJenkinsBuilds extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 构建ID */
    private Long id;

    /** Jenkins构建号 */
    @Excel(name = "Jenkins构建号")
    private Long buildNumber;

    /** Jenkins构建的URL */
    @Excel(name = "Jenkins构建的URL")
    private String buildUrl;

    /**  构建时间戳 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = " 构建时间戳", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buildTimestamp;

    /** 服务包文件名 */
    @Excel(name = "服务包文件名")
    private String fileName;

    /** 服务包存放的路径 */
    @Excel(name = "服务包存放的路径")
    private String filePath;

    /** 服务包版本 */
    @Excel(name = "服务包版本")
    private String version;

    /** 下载URL */
    @Excel(name = "下载URL")
    private String downloadUrl;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String serviceName;

    /** git构建分支或者tag号。必须有 */
    @Excel(name = "git构建分支或者tag号。必须有")
    private String buildTag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBuildNumber(Long buildNumber) 
    {
        this.buildNumber = buildNumber;
    }

    public Long getBuildNumber() 
    {
        return buildNumber;
    }
    public void setBuildUrl(String buildUrl) 
    {
        this.buildUrl = buildUrl;
    }

    public String getBuildUrl() 
    {
        return buildUrl;
    }
    public void setBuildTimestamp(Date buildTimestamp) 
    {
        this.buildTimestamp = buildTimestamp;
    }

    public Date getBuildTimestamp() 
    {
        return buildTimestamp;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setDownloadUrl(String downloadUrl) 
    {
        this.downloadUrl = downloadUrl;
    }

    public String getDownloadUrl() 
    {
        return downloadUrl;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }
    public void setBuildTag(String buildTag) 
    {
        this.buildTag = buildTag;
    }

    public String getBuildTag() 
    {
        return buildTag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buildNumber", getBuildNumber())
            .append("buildUrl", getBuildUrl())
            .append("buildTimestamp", getBuildTimestamp())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("version", getVersion())
            .append("downloadUrl", getDownloadUrl())
            .append("fileSize", getFileSize())
            .append("createTime", getCreateTime())
            .append("serviceName", getServiceName())
            .append("buildTag", getBuildTag())
            .toString();
    }
}
